projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f30734
)
common: env_mmc: Use __weak annotation to simplify code
author
Fabio Estevam
<
[email protected]
>
Tue, 8 Jan 2013 05:36:11 +0000
(
05:36
+0000)
committer
Tom Rini
<
[email protected]
>
Mon, 4 Feb 2013 14:07:21 +0000
(09:07 -0500)
Using the __weak annotation can make the code cleaner.
Signed-off-by: Fabio Estevam <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
common/env_mmc.c
patch
|
blob
|
history
diff --git
a/common/env_mmc.c
b/common/env_mmc.c
index ce2167121004303ac4972f64cd31db37d16c6ccd..02bd5aed10cfeee50842cee00f9895050264c814 100644
(file)
--- a/
common/env_mmc.c
+++ b/
common/env_mmc.c
@@
-46,13
+46,11
@@
DECLARE_GLOBAL_DATA_PTR;
#define CONFIG_ENV_OFFSET 0
#endif
-
static int __
mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
+
__weak int
mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
{
*env_addr = CONFIG_ENV_OFFSET;
return 0;
}
-int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
- __attribute__((weak, alias("__mmc_get_env_addr")));
int env_init(void)
{